// src/router/pc.routes.js
export default [
  {
    path: '/pc/',
    redirect: 'login',
    children: [
      {
        path: 'login',
        name: 'pc-login',
        component: () => import('@/components/pc/PcLogin.vue'),
        meta: { title: '古建筑彩绘文物调查管理系统登录' },
      },
      {
        path: 'mainpage',
        name: 'pc-mainpage',
        component: () => import('@/components/pc/Layout.vue'),
        children: [
          {
            path: '',
            component: () => import('@/components/pc/Mainpage.vue'),
          },
          {
            path: 'Personalinfo',
            component: () => import('@/components/pc/pcPersonalinfo.vue'),
            alias: '/pc/Personalinfo',
          },
          {
            path: 'upload',
            component: () => import('@/components/pc/PcUpLoad.vue'),
            // 添加别名配置
            alias: '/pc/upload',
          },
          {
            path: 'relic-detail/:id',
            component: () => import('@/components/pc/PcDetail.vue'),
            // 添加别名配置
            alias: '/pc/relic-detail/:id',
          },
          {
            path: 'edit/:id',
            component: () => import('@/components/pc/PcEdit.vue'),
            alias: '/pc/edit/:id',
            // meta: { title: '编辑文物' },
          },
          {
            path: 'category',
            component: () => import('@/components/pc/PcMainPageCategory.vue'),
            alias: '/pc/category',
            // meta: { title: '文物类别目录' },
          },
          {
            path: 'category/add',
            component: () => import('@/components/pc/PcCateGoryUpload.vue'),
            alias: '/pc/category/add',
            // meta: { title: '文物类别上传' },
          },
          {
            path: 'category/edit/:id',
            component: () => import('@/components/pc/PcCateGoryEdit.vue'),
            alias: '/pc/category/edit/:id',
            // meta: { title: '文物类别编辑' },
          },
          {
            path: 'test',
            alias: '/pc/test',
            component: () => import('@/components/pc/pctest.vue'),
            // meta: { title: '编辑文物主体' },
          },
        ],
        meta: { title: '古建筑彩绘文物调查管理系统' },
      },
    ],
  },
]
